<?php

	class User{
		public $name;
		public $age;

		public function toString(){
			// in php dot(.) is used to concat string
			// and in java is use plus(+)
			// http://php.net/manual/en/language.operators.string.php
			return $this->name." is ".$this->age." years old\n"; 
		}
	}

	$user = new User();
	$user->name = "wzq";
	$user->age = 31;
	echo $user->toString();

?>